SUBDIRS= lib tools

bin_PROGRAMS = stardictd

AM_CPPFLAGS = $(MARIADB_INCLUDES)

stardictd_DEPENDENCIES = lib/libstardict.la
stardictd_CPPFLAGS = $(STARDICTD_CFLAGS) $(MARIADB_CFLAGS)
## Place libstardict.la before any system library, otherwise build with --as-needed linker option may fail!
stardictd_LDADD = lib/libstardict.la $(STARDICTD_LIBS) $(MARIADB_LIBS)

stardictd_SOURCES = \
	main.cpp	\
	net.h net.cpp	\
	codes.h	\
	daemon.h daemon.cpp	\
	conf.h conf.cpp \
	log.h log.cpp \
	md5.h md5.c \
	rsa.h rsa.cpp \
	db.h db.cpp \
	servicemain.h servicemain.cpp	\
	stardictdmain.h	\
	stardictdmain.cpp

